home *** CD-ROM | disk | FTP | other *** search
/ Aminet 48 / Aminet 48 (2002)(GTI - Schatztruhe)[!][Apr 2002].iso / Aminet / text / edit / vim60rt.lha / Vim / vim60 / syntax / terminfo.vim < prev    next >
Encoding:
Text File  |  2001-08-27  |  5.1 KB  |  120 lines

  1. "  vim: set sw=4 sts=4:
  2. "  Maintainer    : Nikolai 'pcp' Weibull <da.box@home.se>
  3. "  URL        : http://www.pcppopper.org/
  4. "  Revised on    : Tue, 31 Jul 2001 00:49:03 CEST
  5. "  Language    : Terminfo definition
  6.  
  7. if version < 600
  8.     syntax clear
  9. elseif exists("b:current_syntax")
  10.     finish
  11. endif
  12.  
  13. " keywords (define first as to not mess up comments
  14. syn match terminfoKeywords    "[,=#|]"
  15.  
  16. " comments
  17. syn region  terminfoComment    matchgroup=terminfoComment start="^#" end="$" contains=terminfoTodo
  18.  
  19. " todo
  20. syn keyword terminfoTodo    contained TODO FIXME
  21.  
  22. " numbers
  23. syn match   terminfoNumbers    "\<[0-9]\+\>"
  24.  
  25. " special keys
  26. syn match   terminfoSpecialChar    "\\\(\o\{3}\|[Eenlrtbfs^\,:0]\)"
  27. syn match   terminfoSpecialChar "\^\a"
  28.  
  29. " delays
  30. syn match   terminfoDelay    "$<[0-9]\+>"
  31.  
  32. " boolean capabilities
  33. syn keyword terminfoBooleans    bw am bce ccc xhp xhpa cpix crxw xt xenl eo gn
  34. syn keyword terminfoBooleans    hc chts km daisy hs hls in lpix da db mir msgr
  35. syn keyword terminfoBooleans    nxon xsb npc ndscr nrrmc os mc5i xcpa sam eslok
  36. syn keyword terminfoBooleans    hz ul xon
  37.  
  38. " numeric capabilities
  39. syn keyword terminfoNumerics    cols it lh lw lines lm xmc ma colors pairs wnum
  40. syn keyword terminfoNumerics    ncv nlab pb vt wsl bitwin bitype bufsz btns
  41. syn keyword terminfoNumerics    spinh spinv maddr mjump mcs npins orc orhi orl
  42. syn keyword terminfoNumerics    orvi cps widcs
  43.  
  44. " string capabilities
  45. syn keyword terminfoStrings    acsc cbt bel cr cpi lpi chr cvr csr rmp tbc mgc
  46. syn keyword terminfoStrings    clear el1 el ed hpa cmdch cwin cup cud1 home
  47. syn keyword terminfoStrings    civis cub1 mrcup cnorm cuf1 ll cuu1 cvvis defc
  48. syn keyword terminfoStrings    dch1 dl1 dial dsl dclk hd enacs smacs smam blink
  49. syn keyword terminfoStrings    bold smcup smdc dim swidm sdrfq smir sitm slm
  50. syn keyword terminfoStrings    smicm snlq snrmq prot rev invis sshm smso ssubm
  51. syn keyword terminfoStrings    ssupm smul sum smxon ech rmacs rmam sgr0 rmcup
  52. syn keyword terminfoStrings    rmdc rwidm rmir ritm rlm rmicm rshm rmso rsubm
  53. syn keyword terminfoStrings    rsupm rmul rum rmxon pause hook flash ff fsl
  54. syn keyword terminfoStrings    wingo hup is1 is2 is3 if iprog initc initp ich1
  55. syn keyword terminfoStrings    il1 ip ka1 ka3 kb2 kbs kbeg kcbt kc1 kc3 kcan
  56. syn keyword terminfoStrings    ktbc kclr kclo kcmd kcpy kcrt kctab kdch1 kdl1
  57. syn keyword terminfoStrings    kcud1 krmir kend kent kel ked kext
  58. syn match   terminfoStrings    "\<kf\([0-9]\|[0-5][0-9]\|6[0-3]\)\>"
  59. syn keyword terminfoStrings    kfnd khlp khome kich1 kil1 kcub1 kll kmrk
  60. syn keyword terminfoStrings    kmsg kmov knxt knp kopn kopt kpp kprv kprt krdo
  61. syn keyword terminfoStrings    kref krfr krpl krst kres kcuf1 ksav kBEG kCAN
  62. syn keyword terminfoStrings    kCMD kCPY kCRT kDC kDL kslt kEND kEOL kEXT kind
  63. syn keyword terminfoStrings    kFND kHLP kHOM kIC kLFT kMSG kMOV kNXT kOPT kPRV
  64. syn keyword terminfoStrings    kPRT kri kRDO kRPL kRIT kRES kSAV kSPD khts kUND
  65. syn keyword terminfoStrings    kspd kund kcuu1 rmkx smkx lf0 lf1 lf10 lf2 lf3
  66. syn keyword terminfoStrings    lf4 lf5 lf6 lf7 lf8 lf9 fln rmln smln rmm smm
  67. syn keyword terminfoStrings    mhpa mcud1 mcub1 mcuf1 mvpa mcuu1 nel porder oc
  68. syn keyword terminfoStrings    op pad dch dl cud mcud ich indn il cub mcub cuf
  69. syn keyword terminfoStrings    mcuf rin cuu mccu pfkey pfloc pfx pln mc0 mc5p
  70. syn keyword terminfoStrings    mc4 mc5 pulse qdial rmclk rep rfi rs1 rs2 rs3 rf
  71. syn keyword terminfoStrings    rc vpa sc ind ri scs sgr setbsmgb smgbp sclk scp
  72. syn keyword terminfoStrings    setf smgl smglp smgr smgrp hts smgt smgtp wind
  73. syn keyword terminfoStrings    sbim scsd rbim rcsd subcs supcs ht docr tsl tone
  74. syn keyword terminfoStrings    uc hu
  75. syn match   terminfoStrings    "\<u[0-9]\>"
  76. syn keyword terminfoStrings    wait xoffc xonc zerom
  77. syn keyword terminfoStrings    scesa bicr binel birep csnm csin colornm defbi
  78. syn keyword terminfoStrings    devt dispc endbi smpch smsc rmpch rmsc getm
  79. syn keyword terminfoStrings    kmous minfo pctrm pfxl reqmp scesc s0ds s1ds
  80. syn keyword terminfoStrings    s2ds s3ds setab setaf setcolor smglr slines
  81. syn keyword terminfoStrings    smgtb ehhlm elhlm erhlm ethlm evhlm sgr1
  82. syn keyword terminfoStrings    slengthsL
  83.  
  84. " parameterized strings
  85. syn match terminfoParameters    "%[%dcspl+*/mAO&|^=<>!~i?te;-]"
  86. syn match terminfoParameters    "%\('[A-Z]'\|{[0-9]\{1,2}}\|p[1-9]\|P[a-z]\|g[A-Z]\)"
  87.  
  88. if exists("terminfo_minlines")
  89.     let b:terminfo_minlines = terminfo_minlines
  90. else
  91.     let b:terminfo_minlines = 10
  92. endif
  93. exec "syn sync minlines=" . b:terminfo_minlines
  94.  
  95. " Define the default highlighting.
  96. " For version 5.7 and earlier: only when not done already
  97. " For version 5.8 and later: only when an item doesn't have highlighting yet
  98. if version >= 508 || !exists("did_terminfo_syn_inits")
  99.     if version < 508
  100.     let did_terminfo_syn_inits = 1
  101.     command -nargs=+ HiLink hi link <args>
  102.     else
  103.     command -nargs=+ HiLink hi def link <args>
  104.     endif
  105.  
  106.     HiLink terminfoComment    Comment
  107.     HiLink terminfoTodo        Todo
  108.     HiLink terminfoNumbers    Number
  109.     HiLink terminfoSpecialChar    SpecialChar
  110.     HiLink terminfoDelay    Special
  111.     HiLink terminfoBooleans    Type
  112.     HiLink terminfoNumerics    Type
  113.     HiLink terminfoStrings    Type
  114.     HiLink terminfoParameters    Keyword
  115.     HiLink terminfoKeywords    Keyword
  116.     delcommand HiLink
  117. endif
  118.  
  119. let b:current_syntax = "terminfo"
  120.